package com.mvc.web.common.utils;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUtil {

    private static final Properties config;

    static{
		config = new  Properties();
		try {
			config.load(PropertiesUtil.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

    public static String getProperty(String key){
        return config.getProperty(key);
    }
}
